﻿<UserControl
	xmlns="http://schemas.microsoft.com/client/2007"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:lr="clr-namespace:LightReader;assembly=LightReader"
    xmlns:my="clr-namespace:LightReader.ControlLibrary;assembly=LightReader"
	mc:Ignorable="d"
	x:Class="LightReader.SplashPage"
	Visibility="Visible"
	d:DesignWidth="800"
	d:DesignHeight="600">  
    
    <UserControl.OpacityMask>
		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
			<GradientStop Color="#FF000000"/>
			<GradientStop Color="#FF4A5EB2" Offset="1"/>
		</LinearGradientBrush>
	</UserControl.OpacityMask>

	<Grid x:Name="LayoutRoot">
		<Image x:Name="backgroundImage" Stretch="Fill" Source="silverlight_1.jpg"></Image>
	
		<Grid x:Name="SubLayout" ShowGridLines="True" Margin="10,10,10,10" Grid.ColumnSpan="2">
			<Grid.RowDefinitions>
				<RowDefinition Height="150"/>
                <RowDefinition Height="50"/>
				<RowDefinition/>
			</Grid.RowDefinitions>
            
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
			
			<TextBlock 
				Grid.Row="0" 
				Text="LightReader" 
				Margin="200, 32, 0, 0" 
				TextWrapping="Wrap" 
				Foreground="Black" 
				FontSize="72" 
				FontFamily="Trebuchet MS" 
				FontStyle="Italic" 
				x:Name="TitleText_Shadow" 
				HorizontalAlignment="Left" 
				VerticalAlignment="Top"/>	
						
			<TextBlock 
				Grid.Row="0" 
				HorizontalAlignment="Left" 
				Margin="198,30,0,0" 
				VerticalAlignment="Top" 
				Text="LightReader" 
				TextWrapping="Wrap" 
				Foreground="#FFFFFFFF" 
				FontSize="72" 
				FontFamily="Trebuchet MS" 
				FontStyle="Italic" 
				x:Name="TitleText"/>
			
            <TextBlock x:Name="errorLabel" 
                       Grid.Row="1" 
                       Foreground="White" 
                       FontSize="24" 
                       Visibility="Collapsed"
                       VerticalAlignment="Center"/>
            
			<Grid x:Name="LoginGrid" 
				Grid.Row="2" 
				ShowGridLines="False"
				Margin="0, 10, 0, 0">
				<Grid.RowDefinitions>
					<RowDefinition Height="Auto"/>
					<RowDefinition Height="Auto"/>				
					<RowDefinition Height="Auto"/>
					<RowDefinition Height="Auto"/>
				</Grid.RowDefinitions>
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="100"/>
					<ColumnDefinition Width="250"/>
				</Grid.ColumnDefinitions>
				
				<TextBlock Text="Username:" Grid.Row="0" Grid.Column="0" Foreground="White" TextAlignment="Center" VerticalAlignment="Center" />
				<Border Grid.Row="0" Grid.Column="1" Margin="5,5,5,5" CornerRadius="5,5,5,5" Background="White" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">                	
					<TextBox x:Name="userNameTextbox" Background="White" BorderBrush="#00000000" />                    
				</Border>
				
				<TextBlock Text="Password:" Grid.Row="1" Grid.Column="0" Foreground="White" TextAlignment="Center" VerticalAlignment="Center" />
				<Border Grid.Row="1" Grid.Column="1" Margin="5,5,5,5" CornerRadius="5,5,5,5" Background="White" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">                					
                    <my:PasswordTextBox x:Name="passwordTextbox" Background="White" BorderBrush="#00000000" />
				</Border>
																				
				<Button x:Name="submitButton" 	
					Grid.Row="2"
					Grid.Column="1"
					Content="Login" 					
					Height="35" Width="75"
					VerticalAlignment="Top"
					HorizontalAlignment="Left"
					Margin="0, 5, 5, 0" />	
                               
				<Button x:Name="registerButton"
					Grid.Row="3"
					Grid.Column="1" 
                    Content="Register"
					Height="20" Width="75"
					VerticalAlignment="Top"
					HorizontalAlignment="Left"
					Margin="0, 5, 5, 0" />
					
			</Grid>   	
		</Grid>
    </Grid>
</UserControl>